﻿@model Mvc3ToolsUpdateWeb_Default.Models.LogOnModel

@{
    ViewBag.Title = "Logowanie";
    Layout = "~/Views/Shared/_Login.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@Html.ValidationSummary(true, "Logowanie zakończone niepowodzeniem, spróbuj ponownie")

        @using (Html.BeginForm("Login", "Account", FormMethod.Post, new { @class = "form-signin" }))
        {
            <h2 class="form-signin-heading">Zaloguj się</h2>
            @Html.TextBoxFor(m => m.UserName, new { @class = "input-block-level", @placeholder = "login" })
              <strong>@Html.ValidationMessageFor(m => m.UserName)</strong>
            @Html.TextBoxFor(m => m.Password, new { @class = "input-block-level", @placeholder = "hasło", @type="password" })
              <strong>@Html.ValidationMessageFor(m => m.Password)</strong>
              <input class="btn btn-large btn-primary" type="submit" value="Zaloguj" />
        }